package com.study.java.jinjie.thread;

public class Test {

    public static void main(String[] args){
        /*for1();
        for2();*/

        For1 for1 = new For1();
        for1.start();

        try {
            for1.join();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        For2 for2 = new For2();
        for2.start();
    }

    public static void for1(){
        for (int i = 0; i < 105000000; i++) {
            //System.out.println("for1: "+i);
            System.out.println();
        }
    }

    public static void for2(){
        for (int i = 0; i < 5; i++) {
            System.out.println("for2: "+i);
        }
    }
}
